package com.dmm.vod.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 课程科目
 * </p>
 *
 * @author dmm
 * @since 2022-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Subject {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
     @ExcelProperty(value = "id" )
      private Long id;

    /**
     * 类别名称
     */
    @ExcelProperty(value = "课程分类名称" )
    private String title;

    /**
     * 父ID
     */
    @ExcelProperty(value = "上级id")
    private Long parentId;

    /**
     * 排序字段
     */
    @ExcelProperty(value = "排序")
    private Integer sort;

    /**
     * 创建时间
     */
    @ExcelIgnore
    private LocalDateTime createTime;

    @ExcelIgnore
    private LocalDateTime updateTime;

    @ExcelIgnore
    private Integer isDeleted;


    //忽略这个字段
    @ExcelIgnore
    @TableField(exist = false)
    private boolean hasChildren=false;


}
